package com.cq.hd.common.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

public class GaoDeGeocode implements Serializable {

    @ApiModelProperty(value = "国家")
    private String country;

    @ApiModelProperty(value = "省份")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区县")
    private String countyName;

    @ApiModelProperty(value = "街道")
    private String township;

    @ApiModelProperty(value = "详细地址")
    private String formattedAddress;

    public String getCountry() {
        if("[]".equals(country)){
            country = "";
        }
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        if("[]".equals(province)){
            province = "";
        }
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        if("[]".equals(city)){
            city = "";
        }
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountyName() {
        if("[]".equals(countyName)){
            countyName = "";
        }
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    public String getTownship() {
        return township;
    }

    public void setTownship(String township) {
        this.township = township;
    }

    public String getFormattedAddress() {
        return formattedAddress;
    }

    public void setFormattedAddress(String formattedAddress) {
        this.formattedAddress = formattedAddress;
    }
}
